package com.lanyun.aicorrectassistant.convert;

import com.lanyun.aicorrectassistant.basic.entity.GradingResults;
import com.lanyun.aicorrectassistant.controller.admin.gradingResults.vo.GradingResultsRequestPageVO;
import com.lanyun.aicorrectassistant.controller.admin.gradingResults.vo.GradingResultsRequestVO;
import com.lanyun.aicorrectassistant.controller.admin.gradingResults.vo.GradingResultsResponseVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * AI批改结果表转换器
 * @author makejava
 * @version 1.0
 * @date 2025-05-12 01:54:02
 */
@Mapper
public interface GradingResultsConvert {

    GradingResultsConvert INSTANCE = Mappers.getMapper(GradingResultsConvert.class);

    GradingResults convert(GradingResultsResponseVO responseVO);

    GradingResults convert(GradingResultsRequestVO requestVO);

    GradingResults convert(GradingResultsRequestPageVO requestPageVO);

    GradingResultsResponseVO convert(GradingResults entity);

    List<GradingResultsResponseVO> convertEntityToRespList(List<GradingResults> entities);
}
